package com.rpc.consumer;

import com.rpc.provider.service.PayService;
import com.rpc.core.client.RpcReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @RpcReference
    PayService payService;

    @GetMapping("/test")
    public String test(){
        return payService.info();
    }

}
